<?php
use think\facade\Route;

/* 课程管理 */
Route::group('teacher/material', function () {

	Route::group('category', function () {
	    Route::get('list',          '@getCategoryList');
	    Route::post('$',         	'@createCategory');
	    Route::put('$',         	'@updateCategory');
	    Route::delete('$',         	'@deleteCategory');
	});

	Route::group(function () {
	    Route::get('list',          '@getMaterialList');
	    Route::post('add',          '@addMaterial');
	    Route::put('$',          	'@updateMaterialName');
	    Route::put('move',       	'@updateMaterialCategory');
	    Route::delete('$',          '@deleteMaterial');
	    Route::get('deleted',       '@getDeletedMaterial');
	});
    
})->prefix('\app\user\service\teacher\Material');



